//
//  UIFactory.h
//  CurriculumFactory
//
//  Created by 张璞 on 2020/3/17.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN
///UI工厂快速创建UI控件
@interface UIFactory : NSObject

+ (UITabBarItem *)tabBarItemWithTitle:(NSString *)title image:(UIImage *)image selectedImage:(UIImage *)selectedImage tag:(NSInteger)tag;

#pragma mark  创建导航条按钮
/// 创建导航条按钮
/// @param title title
/// @param imageName p图片名
/// @param titleColor 标题颜色
/// @param target target
/// @param action action
+ (UIBarButtonItem *)create_Nav_itemWithTitle:(nullable NSString *)title imageName:(nullable NSString *)imageName TitleColor:(nullable UIColor *)titleColor target:(nullable id)target action:(nullable SEL)action;

#pragma mark  创建QMUIBtn
/// 创建QMUIBtn
/// @param title title
/// @param imageName imageName
/// @param backgroundColor backgroundColor
/// @param typefaceColor 字体颜色
/// @param fontSize 字体大小
/// @param target target
/// @param action action
+ (QMUIButton *)create_btnWithTitle:(nullable NSString *)title imageName:(nullable NSString *)imageName backgroundColor:(nullable UIColor *)backgroundColor TypefaceColor:(nullable UIColor*)typefaceColor fontSize:(CGFloat)fontSize target:(nullable id)target action:(nullable SEL)action;

#pragma mark  创建label
/// 创建label
/// @param content 内容
/// @param textColor 字体颜色
/// @param fontSize 字体大小
+ (QMUILabel *)create_LabelContent:(nullable NSString *)content textColor:(nullable UIColor *)textColor fontSize:(CGFloat)fontSize;


/// 创建UIImageView
/// @param imageName imageName
+ (UIImageView *)create_ImageView_ImageName:(nullable NSString *)imageName;
@end

NS_ASSUME_NONNULL_END
